import React from 'react'

interface SvgIconType {
  iconHref: string,
  style?: any
}
const SvgIcon = ({
  iconHref, style = {}
}: SvgIconType) => {
  return (
    <div style={style}>
      <svg className="icon" aria-hidden="true">
        <use xlinkHref={iconHref}></use>
      </svg>
    </div>
  )
}

export default SvgIcon